<?php $this->widget('application.components.adminmenu',array('nameId'=>'userlist')); ?>

<!-- Subheader -->			
<div id="subheader" class="clearfix">
	 <?php echo "<h2>".$user->username."</h2>";?>
	<a href="#"><span>Cancel</span></a>
</div>
<!-- /End Subheader -->

<!-- Main Content Area -->			
<div style="height: max-height;" id="content">
	
	<div id="inner">	
	
	
	
	<table class="hover" width="100%">
	        <thead>
	            <tr>
	                <th class="checkbox">
	                    <div class="checker" id="uniform-">
	                        <span>
	                            <input type="checkbox" style="opacity:0;">
	                        </span>
	                    </div>
	               </th>
	               <th>Должность</th>
	               <th>Название фирмы</th>
	               <th>сфера деятельности</th>
	               <th>Жалобы</th>
	            	<th>заблокированна</th>
	               <th>Дата</th>
	           </tr>
	        </thead>
	        <tbody >
			<?php foreach( $vacancy as $key ) { ?>
	            <tr>
	                <td>
	                    <div class="checker" id="uniform-">
	                        <span class="">
	                            <input type="checkbox" style="">
	                        </span>
	                    </div>
	                </td>
	                <td>
                            <?php echo $key->position; ?>
                            <p class="links">
                                <?php echo '<a href="/vacancy/read/'.$key->job_id.'">Открыть</a>'; ?>
                               <?php echo '<a href="/admin/quser/blockvacancy/'.$key->job_id.'">Заблокировать</a>'; ?>  
                                <?php echo '<a href="/admin/quser/delvacancy/'.$key->job_id.'">удалить</a>'; ?>                             
                       
                                
                            </p>
                        </td>
	                <td><?php echo $key->firm_name; ?></td>
	                <td><?php echo $key->Scope->scope; ?></td>
	                <td><?php echo $key->complaint; ?></td>
					<td><?php echo $key->block; ?></td>
	            
	                <td><?php echo date("d.m.Y",strtotime($key->date));?></td>
	            </tr>
			<?php } ?>
	        
	        </tbody>
	    </table>
	    </div><!-- end inner -->
</div><!-- End main content area -->
